package com.kaifamiao.www.ioDemo.do0922;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class FileRwaderDemo {
    public static void main(String[] args) {
        try (FileReader fd = new FileReader("E:\\kaifamiao\\workspace\\idea--space\\io\\filewriter.txt");
             BufferedReader br = new BufferedReader(fd)
        ){
            String lin = null;
            while ((lin = br.readLine())!=null){
                System.out.println(lin);
            }

        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
